<?php
	include "includes".DIRECTORY_SEPARATOR."start_session.php";
	
	if ( !defined('USERNAME') || !defined('GROUP') || GROUP != "admin" )
	{
		header("Location: manage_login.php");
		exit;
	}
	 
	if($_SERVER["REQUEST_METHOD"] == 'GET')
		if(isset($_GET[mail]))
	   		mysqli_query($dbc,"DELETE FROM utilizatori WHERE mail='$_GET[mail]'");
	   
	header("Location: ./admin_manage_users.php");	   
?>